﻿namespace Microsoft.VisualStudio.TestTools.UnitTesting
{
    using System;

    /// <summary>
    /// Specifies the files to use when building the assembly.
    /// </summary>
    [AttributeUsage(AttributeTargets.Class | AttributeTargets.Method, AllowMultiple = false)]
    [CLSCompliant(false)]
    public class AssemblyBuilderFilesAttribute : Attribute
    {
        private readonly string[] fileNames;

        #region Constructors
        /// <summary>
        /// Initializes a new instance of the <see cref="AssemblyBuilderFilesAttribute"/> class.
        /// </summary>
        /// <param name="fileNames">The file names.</param>
        public AssemblyBuilderFilesAttribute(params string[] fileNames)
        {
            this.fileNames = fileNames;
        }
        #endregion Constructors

        #region Public Properties
        /// <summary>
        /// Gets the file names.
        /// </summary>
        /// <value>The file names.</value>
        public string[] FileNames
        {
            get { return this.fileNames; }
        }
        #endregion Public Properties
    }
}